/**
 * 信息推送-资产处置-获取信息列表
 * @param {number} data.pageNumber - 当前页
 * @param {number} data.pageSize - 每页条数
 * @param {number} data.event_type - 事件类型
 * @param {string} data.company_name - 公司
 * @param {string} data.contact_name - 联系人
 */
function apiGetInfoListIcon(data) {
  console.log("apiGetInfoList", data);
  return new Promise((resolve, reject) => {
    const res = {
      code: 200,
      data: [
        {
          id: 1,
          number_id: 100,
          company_name: "公司1",
          contact_name: "联系人1",
          event_type: "生日",
          event_time: "2025-5-26",
          link: "http://www.baidu.com",
        },
        {
          id: 2,
          number_id: 200,
          company_name: "公司1",
          contact_name: "联系人1",
          event_type: "生日",
          event_time: "2025-5-26",
          link: "http://www.baidu.com",
        },
        {
          id: 3,
          number_id: 300,
          company_name: "公司1",
          contact_name: "联系人1",
          event_type: "生日",
          event_time: "2025-5-26",
          link: "http://www.baidu.com",
        },
        {
          id: 4,
          number_id: 400,
          company_name: "公司1",
          contact_name: "联系人1",
          event_type: "生日",
          event_time: "2025-5-26",
          link: "http://www.baidu.com",
        },
        {
          id: 5,
          number_id: 500,
          company_name: "公司1",
          contact_name: "联系人1",
          event_type: "生日",
          event_time: "2025-5-26",
          link: "http://www.baidu.com",
        },
        {
          id: 6,
          number_id: 600,
          company_name: "公司1",
          contact_name: "联系人1",
          event_type: "生日",
          event_time: "2025-5-26",
          link: "http://www.baidu.com",
        },
        {
          id: 7,
          number_id: 700,
          company_name: "公司1",
          contact_name: "联系人1",
          event_type: "生日",
          event_time: "2025-5-26",
          link: "http://www.baidu.com",
        },
        {
          id: 8,
          number_id: 800,
          company_name: "公司1",
          contact_name: "联系人1",
          event_type: "生日",
          event_time: "2025-5-26",
          link: "http://www.baidu.com",
        },
        {
          id: 9,
          number_id: 900,
          company_name: "公司1",
          contact_name: "联系人1",
          event_type: "生日",
          event_time: "2025-5-26",
          link: "http://www.baidu.com",
        },
        {
          id: 10,
          number_id: 1000,
          company_name: "公司1",
          contact_name: "联系人1",
          event_type: "生日",
          event_time: "2025-5-26",
          link: "http://www.baidu.com",
        },
      ],
      total: 100,
    };
    const err = {
      code: 500,
      msg: "获取列表失败",
    };
    setTimeout(() => {
      resolve(res);
      // reject(err);
    }, 500);
  });
}
/**
 * 获取事件类型
 */
function apiGetEventTypeListIcon() {
  console.log("apiGetEventTypeList");
  return new Promise((resolve, reject) => {
    const res = {
      code: 200,
      data: [
        {
          id: 1,
          name: "生日",
        },
        {
          id: 2,
          name: "登录",
        },
        {
          id: 3,
          name: "注册",
        },
        {
          id: 4,
          name: "留言",
        },
      ],
    };
    setTimeout(() => {
      resolve(res);
    }, 500);
  });
}
